import { coerceBooleanProperty } from "@angular/cdk/coercion";
import { propDecoratorFactory } from "./decorator.factory";

function toBoolean(val: any) {
  return coerceBooleanProperty(val);
}

export function InputBoolean() {
  return propDecoratorFactory('InputBoolean', toBoolean);
}